﻿using System.Collections.Generic;
using WebFormsMvp.Contrib.Data.Models;

namespace WebFormsMvp.Contrib.Data.Services
{
    /// <summary>
    /// Data Service for providing features for a news feature to a site
    /// </summary>
    public interface INewsService
    {
        /// <summary>
        /// Gets a collection of <see cref="WebFormsMvp.Contrib.Data.Models.INewsArticle"/>.
        /// </summary>
        /// <returns></returns>
        IEnumerable<INewsArticle> GetNewsArticles();
        /// <summary>
        /// Gets the news article.
        /// </summary>
        /// <param name="id">The id of the news article.</param>
        /// <returns></returns>
        INewsArticle GetNewsArticle(int id);
    }
}
